<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

	<!--添加需要搜索的工具  -->
	<div id="huotb9" style="padding: 9px; height: auto">
		<div>
			<a id="huoadd9" href="javascript:void(0)" class="easyui-linkbutton"
				data-options="iconCls:'icon-add',plain:true">添加</a> 
			<sapn style="margin-left:48%">搜索文本：</sapn>
			<input class="easyui-numberbox easyui-searchbox"
				data-options="searcher:searchname,prompt:'请输入需要搜索的事务类型'"
				style="width: 29%"/>
		</div>
	</div>
	
	<table id="huodg9" class="easyui-datagrid" ></table>
	<div id="huodd9" class="easyui-datagrid" style="width: 600px; height: 400px"
		data-options="modal:true,closed:true,title:'审核申请'">
		<form id="ff" method="post" action="addemp">
			<div id="holidaybody" style="margin:2% 20%">
			    <input type="hidden" id="notarizeId">
				<label>申请编号:</label> 
				<input  id="applyId" class="easyui-combobox holidaytext"/><br>
				<label>事务类型:</label> 
				<input  id="holidayType" class="easyui-combobox holidaytext" /><br>
				<label>文件凭证:</label> 
				<img id="fileDocuments" class="holidaytext"  src="" style="width:200px; height:100px"/><br>
			     <label>审批状态:</label> 
			      <select class="holidaytext" id="approvalStatus"
					panelHeight="auto" style="width: 200px">
					<option value="通过">通过</option>
					<option value="未审核">未审核</option>
				</select><br>
			</div>
			</form>
	</div>
		<script src="../hyn/js/check/checkNotarizeApply.js"></script>
		<script type="text/javascript">
		$("#beginTime").datebox({
			
		})
		$("#endTime").datebox({
			
		})
		$("#fileDocuments").filebox({
			
		})
		$("#huoadd9").bind('click',function() {
			addTab("添加申请","../check/checkAddAffairApply");
	     })
	     
		// 定义底部保存，清空，取消按钮
		$('#huodd9').dialog({
			buttons : [ {
				text : '保存',
				iconCls : 'icon-save',
				handler : function() {
					$('#ff').form('submit', {
						onSubmit : function(param) {
							var notarizeId=$("#notarizeId").val();
							var approvalStatus=$("#approvalStatus").val();
							alert(notarizeId);
							alert(approvalStatus);
							$.post("../check/UpdateNotarizeApply",{'notarizeId':notarizeId,'approvalStatus':approvalStatus}, function(e) {
									if (e == "ok") {
										alert("修改成功");
						               $('#huodg9').datagrid('load');
									}
								}
							);
						},
						success : function(data) {

						}
					});
				}
			}, {
				text : '清空',
				iconCls : 'icon-clear',
				handler : function() {
					$('#ff').form('clear');
				}
			}, {
				text : '取消',
				iconCls : 'icon-cancel',
				handler : function() {
					$("#huodd9").window("close");
				}
			} ]
		});
		</script>
</body>
</html>